package com.lagou.code.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * created by kirito at 2020/7/12
 */
@FeignClient(name = "lagou-service-email", fallback = EmailFallback.class, path = "/api/email")
public interface EmailFeignClient {

    @PostMapping("/{email}/{code}")
    boolean sendAuthCode(@PathVariable(value = "email") String email,
                         @PathVariable(value = "code") String code);

}
